package cn.tedu.submarine;

import javax.swing.*;

public class Mine extends SeaObject{
    /**构造方法*/
   public Mine(int x,int y){
        super(11,11,x,y,1);
    }
    public void move(){
        setY(getY()-getSpeed());
    }

    /** 重写*/
    public ImageIcon getImage(){
        return Images.mine;
    }
    /**  水雷越界*/
    public boolean isOutOfBounds(){
       return this.getY()<=150-this.getHeight();
    }
}
